package cn.tedu.charging.user.service.impl;

import cn.tedu.charging.commen.pojo.vo.UserInfoVO;
import cn.tedu.charging.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<UserInfoVO> getUserInfo(Integer userId) {
        log.debug("获取用户信息业务，参数={}",userId);
        List<UserInfoVO> list = userMapper.selectUserVehicleInfoByUserId(userId);
        log.debug("获取用户信息业务，入参:{},出参:{}",userId,list);
        return list;
    }
}
